package com.ruoyi.orders.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.orders.pojo.ZxGoods;
import com.ruoyi.orders.pojo.ZxOrders;
import com.ruoyi.orders.pojo.dto.ZxOrdersDto;
import com.ruoyi.orders.pojo.vo.OrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 陈嘉俊
* @description 针对表【zx_orders(订单)】的数据库操作Mapper
* @createDate 2023-12-18 16:11:50
* @Entity com.ruoyi.domain.ZxOrders
*/
public interface ZxOrdersMapper extends BaseMapper<ZxOrders> {

    List<ZxOrders> getlist();

    List<ZxOrdersDto> findListByGoodsName(String[] names);

    void orderRemoveByIds(List<Integer> ids);

    void order_user(List<Integer> ids);

    void order_goods(List<Integer> ids);

    void updataGoodsNumById(@Param("goodsList")List<ZxGoods> goodsList);

    void saveCord(OrderVo ordersVo);

    Integer insertAndGetAutoId(ZxOrders zxOrders);

    Integer checkAble(ZxGoods goods);

    void insertOrderGoodsCord(ZxOrdersDto ordersDto);

    void insertUserOrders(@Param("userId") Long userId,@Param("orderId") Integer id);
}




